
public class Control {
	public static void main(String[] args) {
		LogUtils.printMemoryUsage(Control.class);
		if (args == null || args.length != 5) {
			System.out.println("Usage: java -jar fileAdaptor.jar whichAdaptor OriginalFolder PreFolder HistoryFolder PostFolder ... ");
			System.exit(0);
		}
		if (args[0].equalsIgnoreCase("selectSolution") || args[0].equalsIgnoreCase("selectSolutions")) {
			SelectSolutionConvertor convertor = new SelectSolutionConvertor();
			convertor.convert(args[1], args[2], args[3], args[4]);
			System.out.println("finished processed!");
		} else if (args[0].equalsIgnoreCase("30minutes")){
			ThirtyMinutesConvertor convertor = new ThirtyMinutesConvertor();
			convertor.convert(args[1], args[2], args[3], args[4]);
			System.out.println("finished processed!");
		} 
		LogUtils.printMemoryUsage(Control.class);
	}

}
